<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>物业管理软件</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="Charisma, a fully featured, responsive, HTML5, Bootstrap admin template.">
	<meta name="author" content="Muhammad Usman">

	<#include "*/pubcss.ftl">	
</head>

<body>
	<#include "*/top.ftl">
	<!-- topbar ends -->
	<div class="container-fluid">
		<div class="row-fluid">
			<#include "*/left.ftl">
			<div id="content" class="span10">
			<!-- content starts -->
			<div>
				<ul class="breadcrumb">
					<li>
						<a href="#">收费管理</a> <span class="divider">/</span>
					</li>
					<li>
						<a href="#">收费</a>
					</li>
				</ul>
			</div>
			<form class="form-horizontal" id="feesForm"  action="javascript:saveFees()">
			<div class="row-fluid sortable">
			    <button type="submit" class="btn btn-primary" <#if (records.state)?if_exists=='1'>disabled</#if>>保存修改</button>
				<button type="button" class="btn btn-primary" onclick="javascript:savefees()" <#if (records.state)?if_exists=='1'>disabled</#if>>收费</button>
				<button type="button" class="btn btn-primary" onclick="window.history.back()">返回</button>
		    </div>
		    <div class="row-fluid sortable">
				<div class="box span12">
					<div class="box-header well">
						<h2><i class="icon-edit"></i>缴费信息</h2>
					</div>
					<div class="box-content">
						<div class="row-fluid">
							<div class="span6">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">记单月份</label>
									<div class="controls">
									    <input class="input-xlarge focused" id="frcode" name="records.frcode" type="hidden" value="${(records.frcode)?if_exists}">
										<input class="input-xlarge focused" readonly id="ymonth" name="records.ymonth" type="text" value="${(ymonth)?if_exists}">
									</div>
								</div>
								</fieldset> 
							</div>
							<div class="span6">
							   <div class="control-group form-horizontal">
								<label class="control-label">缴费状态</label>
								<div class="controls form-horizontal">
									  <label class="radio">
										<input type="radio" name="optionsRadios" readonly name="records.state" id="state" value="1" <#if (records.state)?if_exists=='1'>checked</#if>>
										已缴费
									  </label>
									  <label class="radio">
										<input type="radio" name="optionsRadios" readonly name="records.state" id="state" value="0" <#if (records.state)?if_exists!='1'>checked</#if>>
										未缴费
							          </label>
								</div>
							  </div>
							</div>
                        </div>
						<div class="row-fluid">
							<div class="span6">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">小区名称</label>
									<div class="controls">
										<input class="input-xlarge focused" readonly id="cname" type="text" value="${(records.room.unit.ban.community.cname)?if_exists}">
									</div>
								</div>
								</fieldset> 
							</div>
							<div class="span6">
							   <div class="control-group form-horizontal">
								<label class="control-label">楼栋单元</label>
								<div class="controls form-horizontal">
								 <input class="input-xlarge focused" readonly id="uid" type="text" value="${(records.room.unit.ban.bname)?if_exists}${(records.room.unit.uname)?if_exists}">
								</div>
							  </div>
							</div>
                        </div>
						<div class="row-fluid">
							<div class="span6">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">房号</label>
									<div class="controls">
									    <input class="input-xlarge focused" id="rid" name="records.room.rid" type="hidden" value="${(records.room.rid)?if_exists}">
										<input class="input-xlarge focused" readonly id="rcode" type="text" value="${(records.room.rcode)?if_exists}">
									</div>
								</div>
								</fieldset> 
							</div>
							<div class="span6">
							   <div class="control-group form-horizontal">
								<label class="control-label">业主姓名</label>
								<div class="controls form-horizontal">
								  <input class="input-xlarge focused" id="yzid" name="records.residents.rcode" type="hidden" value="${(records.residents.rcode)?if_exists}">
								  <input class="input-xlarge focused" readonly id="rname" type="text" value="${(records.residents.rname)?if_exists}">
								</div>
							  </div>
							</div>
                        </div>
						<div class="row-fluid">
							<div class="span6">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">联系电话</label>
									<div class="controls">
										<input class="input-xlarge focused" readonly id="tel" type="text" value="${(records.residents.tel)?if_exists}">
									</div>
								</div>
								</fieldset> 
							</div>
							<div class="span6">
							   <div class="control-group form-horizontal">
								<label class="control-label">本期费用</label>
								<div class="controls">
								  <input class="input-xlarge focused" readonly id="bfees" name="records.bfees" type="text" value="${(records.bfees)?if_exists}">
								</div>
							  </div>
							</div>
                        </div>
						<div class="row-fluid">
							<div class="span6">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">往期欠费</label>
									<div class="controls form-horizontal">
									  <input class="input-xlarge focused" readonly id="warrearage" name="records.warrearage" type="text" value="${(records.warrearage)?if_exists}">
									</div>
								</div>
								</fieldset> 
							</div>
							<div class="span6">
							   <div class="control-group form-horizontal">
								<label class="control-label">应缴费</label>
								<div class="controls">
								  <input class="input-xlarge focused" readonly id="shouldpay" name="records.shouldpay" type="text" value="${(records.shouldpay)?if_exists}">
								</div>
							  </div>
							</div>
                        </div>
						<div class="row-fluid">
							<div class="span12">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">摘要</label>
									<div class="controls form-horizontal">
									  <input class="input-xlarge focused span11" id="zcontent" name="records.content" type="text" value="${(records.content)?if_exists}">
									</div>
								</div>
								</fieldset> 
							</div>
							
                        </div>
						
						<ul id="myTab" class="nav nav-tabs">
							<li class="active"><a href="#df" data-toggle="tab">电费</a></li>
							<li><a href="#sf" data-toggle="tab">水费</a></li>
							<li><a href="#wsf" data-toggle="tab">卫生费</a></li>
							<li><a href="#hlf" data-toggle="tab">护楼费</a></li>
							<li><a href="#glf" data-toggle="tab">管理费</a></li>
							<li><a href="#nqf" data-toggle="tab">暖气费</a></li>
							<li><a href="#ff" data-toggle="tab">房费</a></li>
							<li><a href="#qtf" data-toggle="tab">其他费用</a></li>
						</ul>
						<div id="myTabContent" class="tab-content">
						   <!---电费页签开始-->
						   <div class="tab-pane in active" id="df">
							  <div class="row-fluid">
									<div class="span6">
									   <fieldset>
										<div class="control-group form-horizontal">
										   <label class="control-label" for="focusedInput">上期读数</label>
											<div class="controls">
											    <input class="input-xlarge focused" id="an_amfcode" name="records.anmeterRecord.amfcode"  type="hidden" value="${(records.anmeterRecord.amfcode)?if_exists}">
												<input class="input-xlarge focused" readonly id="an_thereadings" name="records.anmeterRecord.thereadings"  type="text" value="${(records.anmeterRecord.thereadings)?if_exists}">
											</div>
										</div>
										</fieldset> 
									</div>
									<div class="span6">
									   <div class="control-group form-horizontal">
										<label class="control-label">本期读数</label>
										<div class="controls form-horizontal">
										  <input class="input-xlarge focused" readonly id="an_currentreading" name="records.anmeterRecord.currentreading" type="text" value="${(records.anmeterRecord.currentreading)?if_exists}">
										</div>
									  </div>
									</div>
								</div>
								<div class="row-fluid">
									<div class="span6">
									   <fieldset>
										<div class="control-group form-horizontal">
										   <label class="control-label" for="focusedInput">走表量</label>
											<div class="controls">
												<input class="input-xlarge focused" readonly id="an_walkquantity" name="records.anmeterRecord.walkquantity" type="text" value="${(records.anmeterRecord.walkquantity)?if_exists}">
											</div>
										</div>
										</fieldset> 
									</div>
									<div class="span6">
									   <div class="control-group form-horizontal">
										<label class="control-label">附加量</label>
										<div class="controls form-horizontal">
										  <input class="input-xlarge focused" readonly id="an_amount" name="records.anmeterRecord.amount" type="text" value="${(records.anmeterRecord.amount)?if_exists}">
										</div>
									  </div>
									</div>
								</div>
								<div class="row-fluid">
									<div class="span6">
									   <fieldset>
										<div class="control-group form-horizontal">
										   <label class="control-label" for="focusedInput">计费量</label>
											<div class="controls">
												<input class="input-xlarge focused" readonly id="an_charge" name="records.anmeterRecord.charge" type="text" value="${(records.anmeterRecord.charge)?if_exists}">
											</div>
										</div>
										</fieldset> 
									</div>
									<div class="span6">
									   <div class="control-group form-horizontal">
										<label class="control-label">应收金额</label>
										<div class="controls">
											<input class="input-xlarge focused" readonly id="an_receivable" name="records.anmeterRecord.receivable" type="text" value="${(records.anmeterRecord.receivable)?if_exists}">
										</div>
									  </div>
									</div>
								</div>
								
								<table class="table table-bordered table-striped table-condensed" id="dynamictable">
									  <thead>
										  <tr>
											  <th>序号</th>
											  <th>指标</th>
											  <th>用量</th>
											  <th>单价</th>
											  <th>金额</th>
										  </tr>
									  </thead>   
									  <tbody>
									    <#assign index=0>
									    <#list (records.anmeterRecord.itemsList)?if_exists as item>
										<tr>
											<td>${(index)?if_exists+1}</td>
											<td id="index">
											   <input class="input-small focused" style="display:none;" id="an_ricode" name="records.anmeterRecord.itemsList[${index}].ricode" type="text" value="${(item.ricode)?if_exists}">
											   <input class="input-small focused" readonly name="records.anmeterRecord.itemsList[${index}].target" id="an_target" type="text" value="${(item.target)?if_exists}">
											</td>
											<td class="center">
											   <input class="input-small focused" readonly id="an_walk" name="records.anmeterRecord.itemsList[${index}].walk" type="text" value="${(item.walk)?if_exists}">
											</td>
											<td class="center">
											   <input class="input-small focused" readonly id="an_price" name="records.anmeterRecord.itemsList[${index}].price" type="text" value="${(item.price)?if_exists}">
											</td>
											<td class="center">
												<input class="input-small focused" readonly id="an_ymoney" name="records.anmeterRecord.itemsList[${index}].ymoney" type="text" value="${(item.ymoney)?if_exists}">
											</td>
											
										</tr>
										<#assign index=index+1>
										</#list>
										
									  </tbody>
								  </table>
							  
						   </div>
						   <!---电费页签结束-->
						   <!---水费页签开始-->
						   <div class="tab-pane in" id="sf">
							  <div class="row-fluid">
									<div class="span6">
									   <fieldset>
										<div class="control-group form-horizontal">
										   <label class="control-label" for="focusedInput">上期读数</label>
											<div class="controls">
											    <input class="input-xlarge focused" readonly id="water_wmfcode" name="records.watermeterRecord.wmfcode" type="hidden" value="${(records.watermeterRecord.wmfcode)?if_exists}">
												<input class="input-xlarge focused" readonly id="water_thereadings" name="records.watermeterRecord.thereadings" type="text" value="${(records.watermeterRecord.thereadings)?if_exists}">
											</div>
										</div>
										</fieldset> 
									</div>
									<div class="span6">
									   <div class="control-group form-horizontal">
										<label class="control-label">本期读数</label>
										<div class="controls form-horizontal">
										  <input class="input-xlarge focused" readonly id="water_currentreading" name="records.watermeterRecord.currentreading" type="text" value="${(records.watermeterRecord.currentreading)?if_exists}">
										</div>
									  </div>
									</div>
								</div>
								<div class="row-fluid">
									<div class="span6">
									   <fieldset>
										<div class="control-group form-horizontal">
										   <label class="control-label" for="focusedInput">走表量</label>
											<div class="controls">
												<input class="input-xlarge focused" readonly id="water_walkquantity" name="records.watermeterRecord.walkquantity" type="text" value="${(records.watermeterRecord.walkquantity)?if_exists}">
											</div>
										</div>
										</fieldset> 
									</div>
									<div class="span6">
									   <div class="control-group form-horizontal">
										<label class="control-label">附加量</label>
										<div class="controls form-horizontal">
										  <input class="input-xlarge focused" readonly id="water_amount" name="records.watermeterRecord.amount" type="text" value="${(records.watermeterRecord.amount)?if_exists}">
										</div>
									  </div>
									</div>
								</div>
								<div class="row-fluid">
									<div class="span6">
									   <fieldset>
										<div class="control-group form-horizontal">
										   <label class="control-label" for="focusedInput">计费量</label>
											<div class="controls">
												<input class="input-xlarge focused" readonly id="water_charge" name="records.watermeterRecord.charge" type="text" value="${(records.watermeterRecord.charge)?if_exists}">
											</div>
										</div>
										</fieldset> 
									</div>
									<div class="span6">
									   <div class="control-group form-horizontal">
										<label class="control-label">应收金额</label>
										<div class="controls">
											<input class="input-xlarge focused" readonly id="water_receivable" name="records.watermeterRecord.receivable" type="text" value="${(records.watermeterRecord.receivable)?if_exists}">
										</div>
									  </div>
									</div>
								</div>
								
								<table class="table table-bordered table-striped table-condensed" id="dynamictable">
									  <thead>
										  <tr>
											  <th>序号</th>
											  <th>指标</th>
											  <th>用量</th>
											  <th>单价</th>
											  <th>金额</th>
										  </tr>
									  </thead>   
									  <tbody>
									    <#assign index=0>
									    <#list (records.watermeterRecord.itemsList)?if_exists as item>
										<tr>
											<td>${(index)?if_exists+1}</td>
											<td id="index">
											   <input class="input-small focused" style="display:none;" id="water_ricode" name="records.watermeterRecord.itemsList[${index}].ricode" type="text" value="${(item.ricode)?if_exists}">
											   <input class="input-small focused" readonly id="water_target" name="records.watermeterRecord.itemsList[${index}].target" type="text" value="${(item.target)?if_exists}">
											</td>
											<td class="center">
											   <input class="input-small focused" readonly id="water_walk" name="records.watermeterRecord.itemsList[${index}].walk" type="text" value="${(item.walk)?if_exists}">
											</td>
											<td class="center">
											   <input class="input-small focused" readonly id="water_price"  name="records.watermeterRecord.itemsList[${index}].price" type="text" value="${(item.price)?if_exists}">
											</td>
											<td class="center">
												<input class="input-small focused" readonly id="water_ymoney"  name="records.watermeterRecord.itemsList[${index}].ymoney" type="text" value="${(item.ymoney)?if_exists}">
											</td>
											
										</tr>
										<#assign index=index+1>
										</#list>
										
									  </tbody>
								  </table>
							  
						   </div>
						   <!---水费页签结束-->
						   <!---卫生费页签开始-->
						   <div class="tab-pane" id="wsf">
							
								<div class="row-fluid">
									<div class="span6">
									   <fieldset>
										<div class="control-group form-horizontal">
										   <label class="control-label" for="focusedInput">应收金额</label>
											<div class="controls">
											    <input class="input-xlarge focused" readonly id="wsf_wsfrcode" name="records.wsfRecord.wsfrcode" type="hidden" value="${(records.wsfRecord.wsfrcode)?if_exists}">
												<input class="input-xlarge focused" readonly id="wsf_receivable" name="records.wsfRecord.receivable" type="text" value="${(records.wsfRecord.receivable)?if_exists}">
											</div>
										</div>
										</fieldset> 
									</div>
									
								</div>
								
								<table class="table table-bordered table-striped table-condensed" id="dynamictable">
									  <thead>
										  <tr>
											  <th>费用类型</th>
											  <th>人数</th>
											  <th>单价</th>
											  <th>金额</th>
										  </tr>
									  </thead>   
									  <tbody>
									    <#assign index=0>
									    <#list (records.wsfRecord.items)?if_exists as item>
										<tr>
											<td id="index">${(item.feesType.ftname)?if_exists}</td>
											<td class="center">
											   <input class="input-small focused" readonly id="wsf_wicode" name="records.wsfRecord.itemsList[${index}].wicode" type="hidden" value="${(item.wicode)?if_exists}">
											   <input class="input-small focused" readonly id="wsf_ftid" name="records.wsfRecord.itemsList[${index}].feesType.ftid" type="hidden" value="${(item.feesType.ftid)?if_exists}">
											   <input class="input-small focused" readonly id="wsf_rnum" name="records.wsfRecord.itemsList[${index}].rnum" type="text" value="${(item.rnum)?if_exists}">
											</td>
											<td class="center">
											   <input class="input-small focused" readonly id="wsf_price" name="records.wsfRecord.itemsList[${index}].price" type="text" value="${(item.price)?if_exists}">
											</td>
											<td class="center">
											   <input class="input-small focused" readonly id="wsf_ymoney" name="records.wsfRecord.itemsList[${index}].ymoney" type="text" value="${(item.ymoney)?if_exists}">
											</td>
											
										</tr>
										<#assign index=index+1>
										</#list>									
									  </tbody>
								  </table>
						   </div>
						   <!---卫生费页签结束-->
						    <!--护楼费开始-->
						   <div class="tab-pane" id="hlf">
							
								<div class="row-fluid">
									<div class="span4">
									   <fieldset>
										<div class="control-group form-horizontal">
										   <label class="control-label" for="focusedInput">本期费用合计</label>
											<div class="controls">
											    <input class="input-small focused" readonly id="hlf_hlfrcode" name="records.hlfRecord.hlfrcode" type="hidden" value="${(records.hlfRecord.hlfrcode)?if_exists}">
												<input class="input-small focused" readonly id="hlf_combined" name="records.hlfRecord.combined" type="text" value="${(records.hlfRecord.combined)?if_exists}">
											</div>
										</div>
										</fieldset> 
									</div>
									<div class="span4">
									   <fieldset>
										<div class="control-group form-horizontal">
										   <label class="control-label" for="focusedInput">调整费用</label>
											<div class="controls">
												<input class="input-small focused" oninput="countfees(this)" id="hlf_fees" name="records.hlfRecord.fees" type="text" value="${(records.hlfRecord.fees)?if_exists}">
											</div>
										</div>
										</fieldset> 
									</div>
									<div class="span4">
									   <fieldset>
										<div class="control-group form-horizontal">
										   <label class="control-label" for="focusedInput">调整后费用</label>
											<div class="controls">
												<input class="input-small focused" readonly id="hlf_realfees" name="records.hlfRecord.realfees" type="text" value="${(records.hlfRecord.realfees)?if_exists}">
											</div>
										</div>
										</fieldset> 
									</div>
									
								</div>
						  </div>
						  <!--护楼费结束-->
						   <!--管理费开始-->
						   <div class="tab-pane" id="glf">
							    <div class="row-fluid">
									<div class="span4">
									   <fieldset>
										<div class="control-group form-horizontal">
										   <label class="control-label" for="focusedInput">单价</label>
											<div class="controls">
											    <input class="input-small focused" readonly id="glf_glfrcode" name="records.glfRecord.glfrcode" type="hidden" value="${(records.glfRecord.glfrcode)?if_exists}">
												<input class="input-small focused" readonly id="glf_price" name="records.glfRecord.price" type="text" value="${(records.glfRecord.price)?if_exists}">
											</div>
										</div>
										</fieldset> 
									</div>
									<div class="span4">
									   <fieldset>
										<div class="control-group form-horizontal">
										   <label class="control-label" for="focusedInput">计数</label>
											<div class="controls">
												<input class="input-small focused" readonly id="glf_rnum" name="records.glfRecord.rnum" type="text" value="${(records.glfRecord.rnum)?if_exists}">
											</div>
										</div>
										</fieldset> 
									</div>
																		
								</div>
								<div class="row-fluid">
									<div class="span4">
									   <fieldset>
										<div class="control-group form-horizontal">
										   <label class="control-label" for="focusedInput">本期费用合计</label>
											<div class="controls">
												<input class="input-small focused" readonly id="glf_bsum" name="records.glfRecord.bsum" type="text" value="${(records.glfRecord.bsum)?if_exists}">
											</div>
										</div>
										</fieldset> 
									</div>
									<div class="span4">
									   <fieldset>
										<div class="control-group form-horizontal">
										   <label class="control-label" for="focusedInput">调整费用</label>
											<div class="controls">
												<input class="input-small focused" oninput="countfees(this)" id="glf_tfees" name="records.glfRecord.tfees" type="text" value="${(records.glfRecord.tfees)?if_exists}">
											</div>
										</div>
										</fieldset> 
									</div>
									<div class="span4">
									   <fieldset>
										<div class="control-group form-horizontal">
										   <label class="control-label" for="focusedInput">调整后费用</label>
											<div class="controls">
												<input class="input-small focused" readonly id="glf_latefees" name="records.glfRecord.latefees" type="text" value="${(records.glfRecord.latefees)?if_exists}">
											</div>
										</div>
										</fieldset> 
									</div>
									
								</div>
						  </div>
						  <!--管理费结束-->
						  <!--暖气费开始-->
						   <div class="tab-pane" id="nqf">
							    <div class="row-fluid">
									<div class="span4">
									   <fieldset>
										<div class="control-group form-horizontal">
										   <label class="control-label" for="focusedInput">本期费用合计</label>
											<div class="controls">
											    <input class="input-small focused" id="nqf_nqfrcode" name="records.nqfRecord.nqfrcode" type="hidden" value="${(records.nqfRecord.nqfrcode)?if_exists}">
												<input class="input-small focused" oninput="countfees(this)" id="nqf_bsum" name="records.nqfRecord.bsum" type="text" value="${(records.nqfRecord.bsum)?if_exists}">
											</div>
										</div>
										</fieldset> 
									</div>
									<div class="span4">
									   <fieldset>
										<div class="control-group form-horizontal">
										   <label class="control-label" for="focusedInput">调整费用</label>
											<div class="controls">
												<input class="input-small focused" oninput="countfees(this)" id="nqf_fees" name="records.nqfRecord.fees" type="text" value="${(records.nqfRecord.fees)?if_exists}">
											</div>
										</div>
										</fieldset> 
									</div>
									<div class="span4">
									   <fieldset>
										<div class="control-group form-horizontal">
										   <label class="control-label" for="focusedInput">调整后费用合计</label>
											<div class="controls">
												<input class="input-small focused" readonly id="nqf_combined" name="records.nqfRecord.combined" type="text" value="${(records.nqfRecord.combined)?if_exists}">
											</div>
										</div>
										</fieldset>
									</div>									
								</div>
								<div class="row-fluid">
									<div class="span4">
									   <fieldset>
										<div class="control-group form-horizontal">
										   <label class="control-label" for="focusedInput">应收滞纳金</label>
											<div class="controls">
												<input class="input-small focused" oninput="countfees(this)" id="nqf_payment" name="records.nqfRecord.payment" type="text" value="${(records.nqfRecord.payment)?if_exists}">
											</div>
										</div>
										</fieldset> 
									</div>
									<div class="span4">
									   <fieldset>
										<div class="control-group form-horizontal">
										   <label class="control-label" for="focusedInput">调整后滞纳金</label>
											<div class="controls">
												<input class="input-small focused" oninput="countfees(this)" onpropertychange="countfees(this)" id="nqf_latefines" name="records.nqfRecord.latefines" type="text" value="${(records.nqfRecord.latefines)?if_exists}">
											</div>
										</div>
										</fieldset> 
									</div>
								</div>
						  </div>
						  <!--暖气费结束-->
						  <!--房费开始-->
						   <div class="tab-pane" id="ff">
							    <div class="row-fluid">
									<div class="span4">
									   <fieldset>
										<div class="control-group form-horizontal">
										   <label class="control-label" for="focusedInput">收取方式</label>
											<div class="controls">
											    <input class="input-small focused" id="ff_ffrcode" name="records.ffRecord.ffrcode" type="hidden" value="${(records.ffRecord.ffrcode)?if_exists}">
												<select id="ff_toll" name="records.ffRecord.toll" class="input-small" onchange="selectchanage(this)">
												  <option value="1" <#if (records.ffRecord.toll)?if_exists=="1">selected</#if>>按面积</option>
												  <option value="2" <#if (records.ffRecord.toll)?if_exists=="2">selected</#if>>按固定</option>
												</select>
											</div>
										</div>
										</fieldset> 
									</div>
									<div class="span4">
									   <fieldset>
										<div class="control-group form-horizontal">
										   <label class="control-label" for="focusedInput">面积</label>
											<div class="controls">
												<input class="input-small focused" readonly id="ff_area" name="records.ffRecord.area" type="text" value="${(roomInfo.coveredarea)?if_exists}">
											</div>
										</div>
										</fieldset> 
									</div>
									<div class="span4">
									   <fieldset>
										<div class="control-group form-horizontal">
										   <label class="control-label" for="focusedInput">单价</label>
											<div class="controls">
												<input class="input-small focused" readonly id="ff_price"  name="records.ffRecord.price" type="text" value="${(room.unit.ban.community.rprice)?if_exists}">
											</div>
										</div>
										</fieldset> 
									</div>									
								</div>
								<div class="row-fluid">
									<div class="span4">
									   <fieldset>
										<div class="control-group form-horizontal">
										   <label class="control-label" for="focusedInput">本期费用合计</label>
											<div class="controls">
											    <input class="input-small focused" readonly oninput="countfees(this)" id="ff_currentcost" name="records.ffRecord.currentcost" type="text" value="${(records.ffRecord.currentcost)?if_exists}">
											</div>
										</div>
										</fieldset> 
									</div>
									<div class="span4">
									   <fieldset>
										<div class="control-group form-horizontal">
										   <label class="control-label" for="focusedInput">调整费用</label>
											<div class="controls">
												<input class="input-small focused" oninput="countfees(this)" id="ff_setupcost" name="records.ffRecord.setupcost" type="text" value="${(records.ffRecord.setupcost)?if_exists}">
											</div>
										</div>
										</fieldset> 
									</div>
									<div class="span4">
									   <fieldset>
										<div class="control-group form-horizontal">
										   <label class="control-label" for="focusedInput">调整后费用合计</label>
											<div class="controls">
											    <input class="input-small focused" readonly id="ff_combined" name="records.ffRecord.combined" type="text" value="${(records.ffRecord.combined)?if_exists}">
											</div>
										</div>
										</fieldset> 
									</div>
								</div>
						  </div>
						  <!--房费结束-->
						  <!--其他费用开始-->
						  <div class="tab-pane in" id="qtf">
						          <button type="button" class="btn btn-primary" onclick="javascript:addTr2('othertable',-1);">添加</button>
						          <button type="button" class="btn btn-primary" onclick="javascript:delTr2();">删除</button>
						          <input class="input-small focused" id="other_orcode" name="records.otherRecord.orcode" type="hidden" value="${(records.otherRecord.orcode)?if_exists}">
						          <input class="input-small focused" id="other_combined" name="records.otherRecord.combined" type="hidden" value="${(records.otherRecord.combined)?if_exists}">
						          <table class="table table-bordered table-striped table-condensed" id="othertable">
									  <thead>
										  <tr>
										      <th>&nbsp;</th>
											  <th>费用名称</th>
											  <th>费用说明</th>
											  <th>金额</th>
											  <th>费用调整</th>
											  <th>调整后费用合计</th>
										  </tr>
									  </thead>   
									  <tbody>
									    <#assign index=1>
									    <#list (records.otherRecord.items)?if_exists as item>
										<tr id='rowsign'>
										    <td><input type='checkbox' id='inlineCheckbox1'  name='ckb' value='${(index)?if_exists}'></td>
											<td><input class="input-small focused" id="other_costname" name="records.otherRecord.itemsList[${index-1}].costname" type="text" value="${(item.costname)?if_exists}"></td>
											<td id="index"><input class="input-small focused" id="other_costdescription"  name="records.otherRecord.itemsList[${index-1}].costdescription" type="text" value="${(item.costdescription)?if_exists}"></td>
											<td class="center">
											   <input class="input-small focused" oninput="rowcount(this)" id="other_amount" name="records.otherRecord.itemsList[${index-1}].amount" type="text" value="${(item.amount)?if_exists}">
											</td>
											<td class="center">
											   <input class="input-small focused" oninput="rowcount(this)" id="other_adjust" name="records.otherRecord.itemsList[${index-1}].adjust" type="text" value="${(item.adjust)?if_exists}">
											</td>
											<td class="center">
												<input class="input-small focused" readonly id="other_item_combined" name="records.otherRecord.itemsList[${index-1}].combined" type="text" value="${(item.combined)?if_exists}">
											</td>
											
										</tr>
										<#assign index=index+1>
										</#list>
										
									  </tbody>
								  </table>
						  </div>
						  <!--其他费用结束-->
						</div>
					</div>
				</div><!--/span-->

			</div><!--/row-->
			</form>
			<!-- content ends -->
			</div><!--/#content.span10-->
		</div><!--/fluid-row-->
		

	</div><!--/.fluid-container-->
	<div class="modal hide" id="savefees">
	   <div class="modal-header">
		 <button type="button" class="close" data-dismiss="modal">×</button>
		 <h3>收费</h3>
		</div>
		<div class="modal-body">
			<div class="row-fluid">
				<div class="span4">
					<fieldset>
						<div class="control-group form-horizontal">
							<label class="control-label" for="focusedInput">本期费用</label>
							<div class="controls">
							    <input class="input-small focused" readonly id="modal_frcode" type="hidden" value="">
								<input class="input-small focused" readonly id="modal_bfees" type="text" value="">
							</div>
						</div>
					</fieldset> 
				</div>
				<div class="span4">
					<fieldset>
						<div class="control-group form-horizontal">
							<label class="control-label" for="focusedInput">往期欠费</label>
							<div class="controls">
								<input class="input-small focused" readonly id="modal_warrearage" type="text" value="">
							</div>
						</div>
					</fieldset> 
				</div>
			</div>
			<div class="row-fluid">
				<div class="span4">
					<fieldset>
						<div class="control-group form-horizontal">
							<label class="control-label" for="focusedInput">应缴费</label>
							<div class="controls">
								<input class="input-small focused" readonly id="modal_shouldpay" type="text" value="">
							</div>
						</div>
					</fieldset> 
				</div>
				<div class="span4">
					<fieldset>
						<div class="control-group form-horizontal">
							<label class="control-label" for="focusedInput">本次缴费</label>
							<div class="controls">
								<input class="input-small focused" oninput="charge()" id="modal_realpay" type="text" value="">
							</div>
						</div>
					</fieldset> 
				</div>
			</div>
			<div class="row-fluid">
				<div class="span4">
					<fieldset>
						<div class="control-group form-horizontal">
							<label class="control-label" for="focusedInput">找零</label>
							<div class="controls">
								<input class="input-small focused" readonly id="modal_charge" type="text" value="">
							</div>
						</div>
					</fieldset> 
				</div>
				<div class="span4">
					<fieldset>
						<div class="control-group form-horizontal">
							<label class="control-label" for="focusedInput">收费人</label>
							<div class="controls">
								<input class="input-small focused" id="modal_pname" type="text" value="${(currentUser.name)?if_exists}">
							</div>
						</div>
					</fieldset> 
				</div>
			</div>
			<div class="row-fluid">
				<div class="span4">
					<fieldset>
						<div class="control-group form-horizontal">
							<label class="control-label" for="focusedInput">摘要</label>
							<div class="controls">
								<input class="input-xlarge focused" id="modal_content" type="text" value="">
							</div>
						</div>
					</fieldset> 
				</div>
			</div>
		</div>
		<div class="modal-footer">
		    <a href="#" class="btn" id="confirmbtn" onclick="confirm()">确认收费</a>
		    <a href="#" class="btn" id="printbtn" onclick="printfees()">打印收据</a>
			<a href="#" class="btn" id="printclosewin" data-dismiss="modal">关闭</a>
		</div>
    </div>
	<#include "*/infotemplate/alert.ftl">
    <#include "*/infotemplate/saveinfo.ftl">
    <#include "*/pubjs.ftl">	
    <script src='${base}/script/fees/fees_edit.js'></script>	
    <iframe style="display:none" src="#" id="print_fees"></iframe>
</body>
</html>
